<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <load href="/{$Think.APP_NAME}/Public/Css/easyui.css"/>
    <load href="/{$Think.APP_NAME}/Public/Css/reg.css"/>
    <load href="/{$Think.APP_NAME}/Public/Js/jquery.min.js"/>
    <load href="/{$Think.APP_NAME}/Public/Js/jquery.easyui.min.js"/>
    <load href="/{$Think.APP_NAME}/Public/Js/settings.js"/>
    <load href="/{$Think.APP_NAME}/Public/Js/region.js"/>
</head>
<body style="margin: 0px">
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td width="550" align="center" valign="top"><form name="reg_check" method="post" action="/{$Think.APP_NAME}/index.php/Profile/studentUpdate" onSubmit="return chkreg(reg_check,'all')">
            <table width="550" height="520" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="130"><div align="right">登录名：</div></td>
                    <td align="left">&nbsp;
                        <span>{$Think.session.account}</span>
                    </td>
                </tr>
                <tr>
                    <td><div align="right">姓名：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input type="text" name="name" size="20"  onblur="chkreg(reg_check,'name')" value="{$Think.session.user.name}" />
                        <font>*</font>
                        <div id="check_name" class="check"></div></td>
                </tr>
                <tr>
                    <td><div align="right">姓别：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input name="sex" type="radio" value="m" <if condition="($info['sex'] eq 'm')">checked</if>/>
                        男
                        <input name="sex" type="radio" value="f" <if condition="($info['sex'] eq 'f')">checked</if>/>
                        女<font>*</font></td>
                </tr>
                <tr>
                    <td><div align="right">所在地区</div></td>
                    &nbsp;
                    <td align="left" colspan="2">&nbsp;
                        <select name="province" onChange="selectcityarea('province','city','reg_check');">
                            <option value="0" selected/>
                        </select>
                        <select name="city">
                            <option value="0" selected/>
                        </select></td>
                </tr>
                <tr>
                    <td><div align="right">出生日期：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input class="easyui-datebox"  name="birth" value="{$info['birth']}" data-options="formatter:myformatter,parser:myparser">
                        </input>
                        <br /></td>
                </tr>
                <tr>
                    <td><div align="right">身份证号：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input type="text" name="id" size="40"  onblur="chkreg(reg_check,'id')" value="{$info['id']}" />
                        <div id="check_id" class="check"></div></td>
                </tr>
                <tr>
                    <td><div align="right">QQ号码：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input type="text" name="qq" size="20"  onBlur="chkreg(reg_check,'qq')" value="{$info['qq']}" />
                        <div id="check_qq" class="check"></div></td>
                </tr>
                <tr>
                    <td><div align="right">E-mail：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input type="text" name="email" size="40" onBlur="chkreg(reg_check,'email')" value="{$info['email']}">
                        <div id="check_email" class="check"></div></td>
                </tr>
                <tr>
                    <td><div align="right">手机号：</div></td>
                    <td colspan="2" align="left">&nbsp;
                        <input type="text" name="contacts" size="20"  onBlur="chkreg(reg_check,'contacts')"  value="{$info['contacts']}">
                        <div id="check_contacts" class="check"></div></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><input type="submit" class="l-btn btn" data-options="plain:true" name="submit" value="提交"/></td>
                    <td><input id="password" type="button" class="l-btn btn" onclick="setPassword()" value="修改密码" ></button></td>
                </tr>
            </table>
        </form>
</table>
<script language="javascript">
    first   ("province","city","reg_check",{$info['province']},"{$info['city']}");
    var m = '{$Think.get.data}';
    if (m!='') {
        if (m == '1') {
            $(window.parent.document).find('#name').html(
                    '姓名：{$Think.session.user.name}');
            window.parent.$.messager.alert('提示', '修改成功！', 'info');
        }
        else
            window.parent.$.messager.alert('提示', '修改失败！', 'error');
    }
</script>
</body>
</html>